package lab02.text12;

public class Shape {
    //定义两个方法分别用来求面积和周长。

    Shape(){}

    float length;
    float width;

    double area(){
        return length*width;
    }
    double perimeter(){
        return (length+width)*2;
    }
}
